﻿<UserControl x:Class="ETRobocon.RaceTraking.GameManagement.TurnTeamEntryUserControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:src="clr-namespace:ETRobocon.RaceTraking.GameManagement"
    Height="164" Width="250">
    <UserControl.Resources>
        <src:WSTeamEntry x:Key="targetTeamEntry"/>
        <src:WSRunner x:Key="targetRunner"/>
        <Style TargetType="Label">
            <Setter Property="FontSize" Value="12"/>
            <Setter Property="Margin" Value="2,2,2,2"/>
            <Setter Property="FontWeight" Value="Bold"/>
        </Style>
        <Style TargetType="TextBlock">
            <Setter Property="FontSize" Value="12"/>
            <Setter Property="Margin" Value="2,2,2,2"/>
        </Style>
    </UserControl.Resources>
    <Border BorderThickness="2" BorderBrush="Blue">
    <Grid>
        <Grid.DataContext>
            <Binding Source="{StaticResource targetTeamEntry}"/>
        </Grid.DataContext>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="92"/>
            <ColumnDefinition/>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="32"/>
            <RowDefinition Height="32"/>
            <RowDefinition Height="32"/>
            <RowDefinition Height="32"/>
            <RowDefinition Height="32"/>
        </Grid.RowDefinitions>
        <Label Grid.Column="0" Grid.Row="0" Content="Course:"/>
        <TextBlock Grid.Column="1" Grid.Row="0">
            <TextBlock.Text>
                <Binding Source="{StaticResource targetRunner}" Path="Course"/>
            </TextBlock.Text>
        </TextBlock>
        <Label Grid.Column="0" Grid.Row="1" Content="EntryTeam:"/>
        <TextBlock Grid.Column="1" Grid.Row="1" Text="{Binding Path=ID}"/>
        <Label Grid.Column="0" Grid.Row="2" Content="TeamID:"/>
        <TextBlock Grid.Column="1" Grid.Row="2" Text="{Binding Path=TeamID}"/>
        <Label Grid.Column="0" Grid.Row="3" Content="Bib:"/>
        <TextBlock Grid.Column="1" Grid.Row="3" Text="{Binding Path=Bib}"/>
        <Label Grid.Column="0" Grid.Row="4" Content="Name:"/>
        <TextBlock Grid.Column="1" Grid.Row="4" Text="{Binding Path=Name}"/>
    </Grid>
</Border>
</UserControl>
